class Solution
{
public:
    vector<int> countNumbers(int n)
    {
        long long num = pow(10, n) - 1;
        vector<int> ans(num, 0);
        for (int i = 0, j = 1; j <= num; i++, j++)
            ans[i] = j;
        return ans;
    }
};